.index-container {
  flex: 1;
  padding: 0 20px 100px;
  background: url(../styles/images/index-banner.png) left top / 100% 185px no-repeat, #F5F6F8;
}

.index-container .menu-container {
  margin: 120px auto 0;
  max-width: 1120px;
}

.index-container .product-box {
  display: block;
  background: #fff;
  box-shadow: 4px 4px 29px 1px rgba(152, 153, 155, 0.17);
  border-radius: 8px 8px 8px 8px;
  font-size: 12px;
  margin-bottom: 24px;
  color: #606266;
  height: 130px;
  padding: 36px 0px 0 48px;
  &:not(.mogdb) {
    max-height: 130px;
  }  
  &.no-bottom {
    margin-bottom: 0;
  }
  &.mogdb {
    height: 284px;
    text-align: center;
    padding: 151px 20px 20px;
    background: url(../styles/images/index-mogdb-logo.png) center 36px / auto 100px no-repeat, #fff;
    & .title {
      font-size: 20px;
      font-weight: 500;
      padding: 0 0 14px;
    }
    & .desc {
      margin: 0 auto;
      font-size: 14px;
      max-width: 360px;
      line-height: 24px;
    }
  }
  & .title-box {
    padding-top: 8px;
    display: flex;
    align-items: center;
  }
  & .title {
    font-size: 15px;
    color: #303133;
    padding-left: 8px;
  }
  &.disabled {
    pointer-events: none;
    color: #a9adbd;
    & .title {
      color: inherit;
    }
  }
  &:hover {
    color: #fff;
    & .title {
      color: inherit;
    }
    &.mogdb {
      background: url(../styles/images/index-mogdb-logo-l.png) center 36px / auto 100px no-repeat, linear-gradient(180deg, #FFD7BF 0%, #ED6D2F 100%), #fff;
    }
    &.mogdb-stack {
      background: linear-gradient(225deg, #ACE1FA 0%, #7ACCD5 100%), #fff;
      & .w-product-icon-colors {
        background-image: url(./images/tools/white/mogdb-stack.png);
      }
    }
    &.manager {
      background: linear-gradient(225deg, #68AEFA 0%, #4196FF 100%), #fff;
      & .w-product-icon-colors {
        background-image: url(./images/tools/white/manager.png);
      }
    }
    &.mogha {
      background: linear-gradient(226deg, #6BD0AD 0%, #57B8B9 100%), #fff;
      & .w-product-icon-colors {
        background-image: url(./images/tools/white/mogha.png);
      }
    }
    &.mogeaver {
      background: linear-gradient(224deg, #F19F4C 0%, #EE8636 100%), #fff;
      & .w-product-icon-colors {
        background-image: url(./images/tools/white/mogeaver.png);
      }
    }
    &.ptk {
      background: linear-gradient(224deg, #6C96F7 0%, #3F71E3 100%), #fff;
      & .w-product-icon-colors {
        background-image: url(./images/tools/white/ptk.png);
      }
    }
    &.parameter {
      background: linear-gradient(229deg, #F8B8FD 0%, #BE3EAF 100%), #fff;
      & .w-product-icon-colors {
        background-image: url(./images/tools/white/parameter.png);
      }
    }
    &.mtk {
      background: linear-gradient(224deg, #EC6A6C 0%, #E5718E 100%), #fff;
      & .w-product-icon-colors {
        background-image: url(./images/tools/white/mtk.png);
      }
    }
    &.mdb {
      background: linear-gradient(229deg, #F3B658 0%, #F2A968 100%), #fff;
      & .w-product-icon-colors {
        background-image: url(./images/tools/white/mdb.png);
      }
    }
    &.sca {
      background: linear-gradient(225deg, #EE8F59 0%, #EB7855 100%), #fff;
      & .w-product-icon-colors {
        background-image: url(./images/tools/white/sca.png);
      }
    }
    &.mvd {
      background: linear-gradient(225deg, #A360E3 0%, #A74BD1 100%), #fff;
      & .w-product-icon-colors {
        background-image: url(./images/tools/white/mvd.png);
      }
    }
    &.uqbar {
      background: linear-gradient(52deg, #2CCDE6 0%, #1E00C7 100%), #fff;
      & .w-product-icon-colors {
        background-image: url(./images/tools/white/uqbar.png);
      }
    }
  }
}

.index-container .box-title {
  margin: 68px auto 32px;
  max-width: 1120px;
  font-size: 24px;
  color: #303133;
}

.index-container .w-product-icon-colors {
  width: 16px;
  height: 16px;
}

.index-container .migrate-container {
  margin: 0 auto;
  max-width: 1120px;
  & .left-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    & .product-box {
      width: calc(50% - 12px);
    }
  }

  & .right-box {
    height: 100%;
    width: 100%;
    background: url('./images/index-img.png') center center / auto 100% no-repeat;
  }
}

@media screen and (max-width: 900px) {
  .index-container .product-box {
    padding: 36px 0px 0 28px;
  }
}

@media screen and (max-width: 768px) {
  .index-container {
    background-size: auto 150px;
    padding-bottom: 50px;
  }

  .index-container .menu-container {
    margin-top: 75px;
  }
  
  .index-container .product-box {
    margin-bottom: 24px;
    padding: 32px 0px 0 32px;
    &.uqbar {
      margin-bottom: 24px !important;
    }
    &.mogdb {
      height: calc(100% - 24px);
      padding: 140px 20px 24px;
      background-position: center 40px;
      background-size: auto 80px;
      & .title {
        font-size: 20px;
        padding: 0 0 12px;
      }
      & .desc {
        font-size: 12px;
        line-height: 20px;
      }
    }
    & .title {
      font-size: 15px;
      padding-left: 8px;
    }
    &:hover {
      &.mogdb {
        background-position: center 40px, center center;
        background-size: auto 80px, 100% 100%;
      }
    }
  }
  
  .index-container .box-title {
    margin: 42px auto 22px;
    font-size: 18px;
  }
  
  .index-container .migrate-container {
    & .right-box {
      height: 200px;
      margin-top: 20px;
    }
  }
}

@media screen and (max-width: 576px) {
  .index-container .product-box {
    &.no-bottom {
      margin-bottom: 24px !important;
    }
  }
  
  .index-container .box-title {
    margin: 0 auto 14px;
    font-size: 16px;
  }
  .index-container .migrate-container {
    & .left-box {
      & .product-box {
        width: 100%;
      }
    }
  }
}